import streamlit as st

st.title('Counter Example')
# count = 0
#
# increment = st.button('Increment')
# if increment:
#     count += 1
#
# st.write('Count = ', count)

st.title('Counter Example')
if 'count' not in st.session_state:
    st.session_state.count = 0

increment = st.button('Increment')
if increment:
    st.session_state.count += 1

st.write('Count = ', st.session_state.count)